# 循环计算300到415之间的累加和
a = 300
sum = 0
while a <= 415:
    sum += a
    a += 1
print(sum)
